<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="/js/jquery-3.4.1.min.js" type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
    <script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
</head>
<body>


<textarea id="detail"></textarea>
<button id="btnSave">提交</button>

<script>
    var simplemde = new SimpleMDE({ element: document.getElementById("detail") });

    $("#btnSave").click(function () {
        var content = simplemde.value();
        console.log(content);
        //simplemde.value("1706A");
        var html = simplemde.markdown(simplemde.value())
        console.log(html);

    });

</script>

</body>
</html>